/**
 *  隐患管理模块 api
 *  @module api/hidden-danger
 */
import axios from '@/utils/axios.js'
const API_HOST = ''
/**
 * 隐患下达
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const addCheck = (data) => axios({
	method: 'post',
	data: data,
	url: API_HOST + '/baseCheck/findHiddenDanger/add'
})
/**
 * 隐患台账列表
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const minPageFindHiddenDanger = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/baseCheck/findHiddenDanger/minPage'
})
/**
 * 隐患未下达
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const unMinPageFindHiddenDanger = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/baseCheck/findHiddenDanger/page'
})
/**
 * 隐患未下达
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const HiddenDangerNotice = (data) => axios({
	method: 'post',
	data: data,
	url: API_HOST + '/baseCheck/findHiddenDanger/noticeApprove'
})
/**
 * 隐患详情
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const infoHiddenDanger = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/baseCheck/findHiddenDanger/info'
})
/**
 * 隐患详情
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const editHiddenDanger = (data) => axios({
	method: 'put',
	data: data,
	url: API_HOST + '/baseCheck/findHiddenDanger/edit'
})
/**
 * 隐患督办列表
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const pageSupervision = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/baseCheck/andSupervision/myPage'
})
/**
 * 更新隐患录入信息(督办管理-督办清单)
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const editSuperviseList = (data) => axios({
	method: 'put',
	data: data,
	url: API_HOST + '/baseCheck/andSupervision/edit'
})
/**
 * 隐患整改
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getHiddenRequireDetail = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/baseCheck/findHiddenDanger/getHiddenRequireDetail'
})
/**
 * 隐患整改信息验收
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const acceptPostpone = (data) => axios({
	method: 'post',
	data: data,
	url: API_HOST + '/baseCheck/findHiddenDanger/accept'
})
/**
 * 隐患整改
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const changeRectify = (data) => axios({
	method: 'post',
	data: data,
	url: API_HOST + '/baseCheck/findHiddenDanger/change'
})
/**
 * 隐患退回
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const postBack = (data) => axios({
	method: 'post',
	data: data,
	url: API_HOST + '/baseCheck/findHiddenDanger/back'
})
/**
 * 申请延期
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const addPostpone = (data) => axios({
	method: 'post',
	data: data,
	url: API_HOST + '/baseCheck/postpone/add'
})
/**
 * 申请延期
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const pageApprove = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/baseCheck/postpone/page'
})
/**
 * 延期审批信息查看
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const oneDetailPostpone = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/baseCheck/postpone/oneDetail'
})
/**
 * 延期审批信息查看
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const editPostpone = (data) => axios({
	method: 'put',
	data: data,
	url: API_HOST + '/baseCheck/postpone/edit'
})
/**
 * 风险变化趋势
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const riskChangeChart = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/base/hiddenDanger/riskChangeChart'
})
/**
 * 风险分布统计
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const riskLocationDistributeChart = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/base/hiddenDanger/riskLocationDistributeChart'
})
/**
 * 隐患专业
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const radarChart = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/base/hiddenDanger/radarChart'
})
/**
 * 风险、隐患、三违分布统计
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const riskHiddenDangerThreeViolateChart = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/base/hiddenDanger/riskHiddenDangerThreeViolateChart'
})
/**
 * 隐患变化趋势
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const hiddenDangerChangeChart = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/base/hiddenDanger/hiddenDangerChangeChart'
})
/**
 * 隐患分布统计
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const hiddenDangerDistributeChart = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/base/hiddenDanger/hiddenDangerDistributeChart'
})
/**
 * 不安全行为新增
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const addViolation = (data) => axios({
	method: 'post',
	data: data,
	url: API_HOST + '/violation/add'
})
/**
 * 隐患逾期公告信息
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getNoticeData = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/baseCheck/findHiddenDanger/getOverTimeHidden10'
})
/**
 * 隐患信息下达审批申请详情
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getNoticeApproveDetail = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/baseCheck/findHiddenDanger/noticeApproveDetail'
})
/**
 * 隐患信息下达审批批复
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const postNoticeApproveHandle = (data) => axios({
	method: 'post',
	data: data,
	url: API_HOST + '/baseCheck/findHiddenDanger/noticeApproveHandle'
})
/**
 * 隐患信息下达审批分页
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getApprovePage = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/baseCheck/findHiddenDanger/approvePage'
})
/**
 * 隐患信息整改销号
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const postDestroy = (data) => axios({
	method: 'post',
	data: data,
	url: API_HOST + '/baseCheck/findHiddenDanger/destroy'
})
/**
 * 隐患信息验收签名记录
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getAcceptSign = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/baseCheck/findHiddenDanger/getAcceptSign'
})
/**
 * 不安全行为台账分页
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getViolation = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/violation/page'
})
/**
 * 不安全行为台账详情
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getViolationInfo = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/violation/info'
})
/**
 * 三违统计分析
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const threeViolationAnalyze = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/prevention/integratedManagementScreen/threeViolationAnalyze'
})
/**
 * 三违人员统计
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const countByUser = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/violation/countByUser'
})